/**
 * Created by ren on 29/03/2017.
 */
export const CUT_TAB = 'CUT_TAB';
export const MORE_LOAD = 'MORE_LOAD';
export const REFRASH = 'REFRASH';

export const UPDATE_NICKNAME = 'UPDATE_NICKNAME'
export const UPDATE_SEX = 'UPDATE_SEX'
export const UPDATE_BIRTHDAY = 'UPDATE_BIRTHDAY'
export const SELECT_BRAND = 'SELECT_BRAND'
export const CANCEL_BRAND = 'CANCEL_BRAND'
export const RESET_BRAND = 'RESET_BRAND'

export const SELECT_COUNTRY = 'SELECT_COUNTRY'
export const CANCEL_COUNTRY = 'CANCEL_COUNTRY'
export const RESET_COUNTRY = 'RESET_COUNTRY'

export const FILTER_ORDER = 'FILTER_ORDER'
export const CANCEL_FILTER_ORDER = 'CANCEL_FILTER_ORDER'

export const CHECKLOGIN = 'CHECKLOGIN'

export const CHECKNOTLOGIN = 'CHECKNOTLOGIN'

export const ORDERDATA_LOADED='ORDERDATA_LOADED'
export const ORDERDATA_NOTLOAD='ORDERDATA_NOTLOAD'
export function cutTab(str) {
  return {type: CUT_TAB, title: str}
}
export function moreLoad() {
  return {type: MORE_LOAD}
}
export function refrash() {
  return {type: REFRASH}
}
export function updateNickName(nickName) {
  return {
    type: UPDATE_NICKNAME, nickName: nickName
  }
}
export function updateSex(sex) {
  return {
    type: UPDATE_SEX, sex: sex
  }
}
export function updateBirthday(birthday) {
  return {
    type: UPDATE_BIRTHDAY, birthday: birthday
  }
}
export function selectBrand(brandId) {
  return {
    type: SELECT_BRAND, brandId: brandId
  }
}
export function cancelBrand(brandId) {
  return {
    type: CANCEL_BRAND, brandId: brandId
  }
}
export function resetBrand() {
  return {
    type: RESET_BRAND
  }
}
export function selectCountry(countryId) {
  return {
    type: SELECT_COUNTRY, countryId: countryId
  }
}
export function cancelCountry(countryId) {
  return {
    type: CANCEL_COUNTRY, countryId: countryId
  }
}
export function resetCountry() {
  return {
    type: RESET_COUNTRY
  }
}
/**
 * 筛选
 * @returns {{type: string}}
 */
export function filterOrder() {
  return {
    type: FILTER_ORDER
  }
}
export function cancelFilterOrder() {
  return {
    type: CANCEL_FILTER_ORDER
  }
}

export function checkLogin() {
  return {
    type: CHECKLOGIN
  }
}

export function checkNotLogin() {
  return {
    type: CHECKNOTLOGIN
  }
}
export function orderLoaded() {
  return {
    type:ORDERDATA_LOADED
  }
}
export function orderNotLoad() {
  return {
    type:ORDERDATA_NOTLOAD
  }
}


